package com.liu.netty.entity;

import lombok.Data;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import javax.persistence.*;

@Getter
@Setter
@NoArgsConstructor
@Table(name = "sx_error_info")
@Entity
public class ErrorInfo {

    @Id
    private String id;


    private String dateTime;

    private String errorCode;

    @ManyToOne(fetch = FetchType.EAGER)
    @JoinColumn(name = "dr_id")
    private Driver driver;

}
